package com.jcl.recruit.searchresume.model;


import com.jcl.recruit.core.common.CommonEnum;
import com.jcl.core.utils.StringUtils;

import java.util.Date;

public class SearchResumeRecord {

    private Integer id;

    private Integer userId;

    private String keyword;

    private String[] keywords;

    private String city;

    private String education;

    private Integer workYear;

    private Integer wechatPush;

    private Integer emailPush;

    private Integer isDel;

    private String crawingFrom;

    private Date    createTime;

    private Date    updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getKeyword() {
        return keyword;
    }

    public String[] getKeywords() {
        if(StringUtils.hasLength(keyword)){
            keywords = keyword.split(StringUtils.BLANK_SPACE);
        }
        return keywords;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public Integer getWorkYear() {
        return workYear;
    }

    public void setWorkYear(Integer workYear) {
        this.workYear = workYear;
    }

    public String getWorkYearName(){
        if(null == workYear){
            return "经验不限";
        }
        return CommonEnum.WorkYearStatus.getName(workYear);
    }
    public Integer getWechatPush() {
        return wechatPush;
    }

    public void setWechatPush(Integer wechatPush) {
        this.wechatPush = wechatPush;
    }

    public Integer getEmailPush() {
        return emailPush;
    }

    public void setEmailPush(Integer emailPush) {
        this.emailPush = emailPush;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getCrawingFrom() {
        return crawingFrom;
    }

    public void setCrawingFrom(String crawingFrom) {
        this.crawingFrom = crawingFrom;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
